<?
require("config.php");

$location_status .= " | Delete";

$show_backnav = "shipping_menu";

require($rela_path . "bin/country.php");

$menutype = 2;

if (NULL!=$action){

	$Query = "delete from $table where id = $id";

	myQuery($Query);


	header("location:" . $rela_path . "share/msg.php?v=76&Start_Num=$Start_Num&Search=".urlencode($Search));

	exit();

}

if (!checkRecord($table,$id)){

	header("location:" . $rela_path . "share/msg.php?v=9002");
	exit();

}


$Query = "select 
	code,
	region,
	carrier,
	weightfrom,
	weightto,
	charge ,
	regionc,
	self
from $table where id='$id' Limit 1";
$r = myQuery($Query);

	$Code=		$r[0][0];
	$Country=	$r[0][1];
	$Carrier=	$r[0][2];
	$Weightfrom=	$r[0][3];
	$Weightto=	$r[0][4];
	$Charge=	$r[0][5];
	$Regionc=	$r[0][6];
	$self=	$r[0][7];
	

require($rela_path . "inc/header.php");

?>

<form action="" method="post" name="form1">  

<!--hidden filed-->
<input name="action" type="hidden" value="edit">
<input name="id" type="hidden" value="<?print($id)?>">





<br>
<table width="95%" border="0" align="center">
  <tr> 
    <td width="579" valign="top" height="127"> Are you sure to delete this record 
      ? 
      <input type="submit" class="button" name="Submit" value="   Yes   ">
      <input type="button" class="button" name="Submit2" value="   No   " onClick="Redirect('shipping_menu.php',1)">
      <br>
      <br>
      <table border="0">
        <tr>
          <td class="tdheader">Region : </td>
          <td>
            <?=$Country?>
          </td>
        </tr>
        <tr>
          <td class="tdheader">&nbsp;</td>
          <td><?=$Regionc?></td>
        </tr>
        <tr>
          <td class="tdheader">Carrier :</td>
          <td><?=$Carrier?></td>
        </tr>
	  <? if ($Carrier!='Self Take') { ?>
        <tr>
          <td class="tdheader">Weight From :</td>
          <td>
            <?=$Weightfrom?>
      Kg </td>
        </tr>
        <tr>
          <td class="tdheader">Weight To :</td>
          <td>
            <?=$Weightto?>
      Kg </td>
        </tr>
        <tr>
          <td class="tdheader">Charge :</td>
          <td>
            <?=$Charge?>
      HKD</td>
        </tr>
	  <? } ?>
<!--        <tr>
          <td class="tdheader">Can Self take? </td>
          <td><?=$self?'Yes':'No'?></td>
        </tr>
-->      </table></td>

  </tr>
</table>
</form>
<br>
<br>
<br>
<?
require($rela_path . "inc/footer.php");
?>
